package com.kuaijian.controller;


import com.kuaijian.po.User;

import org.springframework.web.bind.annotation.GetMapping;

import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/users")
public class UserController {

    @GetMapping
    public String list() {
        System.out.println("hello world");
        return "你好";
    }

    @GetMapping("/{id}")
    public String queryById(@PathVariable Integer id) {
        System.out.println("hello world");
        return "hello" + id;
    }
}
